import axios from "axios";
import {dataBaseFlag} from "@/consts/eventName.js";

export function getMaleAge(year){
    if (dataBaseFlag){
        console.log("数据库接口")
    }
    return axios.get(`http://127.0.0.1:8000/population_feature/male/${year}`)
}

export async function getFemaleAge(year){
    return await axios.get(`http://127.0.0.1:8000/population_feature/female/${year}`)
}

